package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IUserPhoneDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.UserPhone;
import com.ricchieri.service.interf.IUserPhoneService;

@Transactional(readOnly = true)
public class UserPhoneService implements IUserPhoneService, Serializable {
	private static final long serialVersionUID = -5623511401007042041L;
	IUserPhoneDao userPhoneDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<UserPhone> getAllUserPhone() {
		BasicFilter filter = new BasicFilter();
		return userPhoneDao.getAllUserPhone(filter);
	}

	public IUserPhoneDao getUserPhoneDao() {
		return userPhoneDao;
	}

	public void setUserPhoneDao(IUserPhoneDao userPhoneDao) {
		this.userPhoneDao = userPhoneDao;
	}
}
